package com.magicsoft.app.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class BonusRecordDetailEntity implements Parcelable {
	/**
	 * 日期
	 */
	String date;
	
	/**
	 * 描述
	 */
	String description;
	
	/**
	 * 金额
	 */
	String amount;
	
	public BonusRecordDetailEntity() {
		date = "";
		description = "";
		amount = "";
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(date);
		dest.writeString(description);
		dest.writeString(amount);
	}

	private BonusRecordDetailEntity(Parcel in) {
		date = in.readString();
		description = in.readString();
		amount = in.readString();
	}
	
	public static final Creator<BonusRecordDetailEntity> CREATOR = new Creator<BonusRecordDetailEntity>() {

		@Override
		public BonusRecordDetailEntity createFromParcel(Parcel source) {
			return new BonusRecordDetailEntity(source);
		}

		@Override
		public BonusRecordDetailEntity[] newArray(int size) {
			return new BonusRecordDetailEntity[size];
		}
	};
}
